﻿using System;
using System.Collections.Generic;

namespace Ec_System.Models.Web
{
    public class ShopProductDataRequest : RequestBase
    {
        public int ManufacturerID { get; set; }
    }

    public class ShopProductDataResponse : ResponseBase<List<ShopProductData>> { }

    public partial class  ShopProductData
    {
        public Int32 ProductID { get; set; }
        public Int32 ProductClassID { get; set; }
        public Int32 Class1 { get; set; }
        public Int32 Class2 { get; set; }
        public Int32 Class3 { get; set; }
        public Int32 Status { get; set; }
        public Int32 Star { get; set; }
        public Int32 ManufacturerID { get; set; }
        public Int32 ProductLevel { get; set; }
        public Int32 CostValue { get; set; }
        public Int32 EvaluationCount { get; set; }
        public System.Decimal MarketPrice { get; set; }
        public System.Decimal ShopPrice { get; set; }
        public System.DateTime InDate { get; set; }
        public System.DateTime LastEditDate { get; set; }
        public System.Decimal SoldlNum { get; set; }
        public System.Decimal Satisfaction { get; set; }
        public String VendorNumber { get; set; }
        public String Unit { get; set; }
        public String InUser { get; set; }
        public String LastEditUser { get; set; }
        public String ShopId { get; set; }
        public String ItemNumber { get; set; }
        public String ShopProductTitle { get; set; }
        public String SecondTitle { get; set; }
        public String ShopProductDescription { get; set; }
        public String ImageUrl { get; set; }
    }

    public partial class ShopProductData
    {
      
        public string ManufacturerName { get; set; }
        public string VendorName { get; set; }

        public string ShippingArea { get; set; }

        public string ShopName { get; set; }

        public string BrandName { get; set; }

        public string PhoneNum { get; set; }

        public string StatusDisplay
        {
            get
            {
                switch(Status)
                {
                    case 1: return "正常";
                    case 2: return "下架";
                    default: return "未知状态";
                }
            }
        }

        /// <summary>
        /// 掌柜推荐--销售前5
        /// </summary>
        public List<ShopProductData> ShopProductTop5 { get; set; }

        /// <summary>
        /// 存放抢购信息
        /// </summary>
        public PromotionScheduleData PromotionSchedule { get; set; }

    }

}
